package com.situ.mall.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.mall.order.entity.query.OrderInfoQuery;
import com.situ.mall.order.entity.vo.OrderInfoVO;
import com.situ.mall.pojo.entity.order.OrderInfo;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Gao
 * @since 2024-10-16
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    void add(OrderInfo orderInfo);

    IPage<OrderInfoVO> list(OrderInfoQuery orderInfoQuery);

    void cancelOrder(Long orderId);

    void updateStatus(OrderInfo orderInfo);

    void payOrder(Long userId, Long orderId);
}
